home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Chassis 6.0 ƒ / MyGlobals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  4.1 KB  |  98 lines  |  [TEXT/KAHL]

  1. /************************************************************************************/
  2. /*    MyGlobals.c                                                                        */
  3. /*                                                                                    */
  4. /*  See also MyHeaders.h                                                            */
  5. /************************************************************************************/
  6.  
  7. #include "MyHeaders.h"
  8.  
  9. /**************************                                                         */
  10. /*    GLOBAL VARIABLES      *                                                         */
  11. /**************************                                                         */
  12. short        MainRetCode;                        /* main program return code            */
  13. short        WorkRetCode;                        /* work return code                    */
  14. short        j,k,l,m,n;                            /* work variables                    */
  15. long        worklong;                            /* work variable                    */
  16. Rect        workRect;                            /* work variable                    */
  17. short        workInt;                            /* work variable                    */
  18. Handle        workHandle;                            /* work variable                    */
  19. Point        workPoint;                            /* work variable                    */
  20. char        workChar;                            /* work variable                    */
  21. TEHandle    workTEHandle;                        /* work variable                    */
  22. ControlHandle    workControlHandle;                /* work variable                    */
  23. Str255        workStr255;                            /* work variable                    */
  24. Boolean        workBoolean;                        /* work variable                    */
  25. GrafPtr        workGrafPtr;                        /* work variable                    */
  26.                                                                                        
  27. EventRecord        myEvent;                        /* from event loop                    */
  28. short            myQuitFlag;                        /* flag to get out of event loop    */
  29.  
  30. WindowPtr        workWindowPtr;                    /* pointer from FindWindow            */
  31. short            myMouseWhere;                    /* location (not Point) of mouse    */
  32.  
  33. char            testChar;                        /* character for boolean operations    */
  34.  
  35. MenuInfo         **myMenuHandle[4];                /* handles for various menus        */
  36. Str255            menuItemName;                    /* name returned from menu select    */
  37. short            mymenuID;                        /* menu ID from MenuSelect            */
  38. short            mymenuItem;                        /* menu item number from MenuSelect    */
  39.  
  40. DialogPtr        myDlogPtr;                        /* pointer to active dialog            */
  41. DialogTemplate    myDTmpl,**myDTmplH;                /* template for active dialog        */
  42.  
  43. AlertTemplate    myATmpl,**myATmplH;                /* template for active Alert        */
  44.  
  45. struct    wTblStruct                                /* space for some window info        */
  46.         windTbl[windMax];                        /* table of many of the above        */
  47. short            windSub;                        /* subscript for window table        */
  48.  
  49. short            myResRefNum;                    /* application res file ref num        */
  50. short            initResRefNum;                    /* res file ref num after inits        */
  51.  
  52. Rect            myDragRect;                        /* outer bounds for dragging        */
  53.  
  54. Point            nextTextPosit;                    /* Position of next text window        */
  55.  
  56. Rect            destRect;                        /* for calculations of TE areas        */
  57. Rect            viewRect;                        /* for calculations of TE areas        */
  58. RgnHandle        workRegionH;                    /* work handle for TE redraw        */
  59. Boolean            firstPage;                        /* for printing                        */
  60.  
  61. WindowPtr        mouseWindPtr;                    /* pointer to window with cursor    */
  62. Point            locMouse;                        /* local coords of mouse            */
  63. Point            gMouse;                            /* global coords of mouse            */
  64. short            mouseWindPart;                    /* part code in window                */
  65.  
  66. SFReply            workReply;                        /* work area for std file reply        */
  67. short            workRC;                            /* work area for open return code    */
  68. short            workPathRefNum;                    /* work area path ref num from open    */
  69.  
  70. short            appMessage;                        /* startup message from Finder        */
  71. short            appCount;                        /* number of docs from Finder        */
  72. AppFile            appTheFile;                        /* file information from Finder        */
  73. long            appMenuLong;                    /* menu longword for menu proc        */
  74. short            appIndex;                        /* index pointer for GetAppFiles    */
  75.  
  76. THPrint            prRecHdl;                        /* handle to print record            */
  77. TPPrPort        prPortPtr;                        /* pointer to print port            */
  78.  
  79. Boolean            useColor;                        /* should we use color windows, etc    */
  80.  
  81. Handle            theSnd;                            /* handle to sound resource            */
  82. OSErr            sndRC;                            /* return code from SndPlay            */
  83. SndChannel        *theSndChan;                    /* sound channel                    */
  84.  
  85. ScrapStuff        *scrapPtr;                        /* pointer to desk scrap            */
  86. long            scrapOffset;                    /* offset from beginning of scrap    */
  87.  
  88. ListHandle        helpList;                        /* handle for List Manager            */
  89. Point            helpCell = {0, 0};                /* cell for List Manager            */
  90. long            helpLong;                        /* for help facility                */
  91. Rect            helpRect = {26,164, 214,398};    /* for help facility                */
  92. Handle            helpHandle;                        /* work handle for help                */
  93. short            helpPrev = -1;                    /* previously selected help item    */
  94.  
  95. struct            versRec                            /* vers resource                    */
  96.                 **versRecHandle;
  97. Str255            versLongStr;                    /* long string from vers resource    */
  98.